import Product from '../pages/Main/Home/product'
import Activity from '../pages/Main/Home/activity'
import Record from '../pages/Main/Game/Record'
import Reward from '../pages/Main/Game/Reward'
import Game from '../pages/Main/Game/index'

export const routes = {
    home: [
        {
            name: '网站中心',
            path: '/home'
        },
        {
            name: '产品列表',
            path: '/home/product'
        },
        {
            name: '活动举办',
            path: '/home/activity'
        },
    ],
    game: [
        {
            name: '游戏主页',
            path: '/game'
        },
        {
            name: '游戏记录',
            path: '/game/record'
        },
        {
            name: '游戏奖励',
            path: '/game/reward'
        },
    ]
};

export const childRoutes = {
    home: [
        {
            name: '产品列表',
            path: '/home/product',
            component: Product
        },
        {
            name: '活动举办',
            path: '/home/activity',
            component: Activity
        },
    ],
    game: [
        {
            name: '游戏主页',
            path: '/game',
            component: Game
        },
        {
            name: '游戏记录',
            path: '/game/record',
            component: Record
        },
        {
            name: '游戏奖励',
            path: '/game/reward',
            component: Reward
        },
    ]
};
